// JavaScript Document

function showwmp(filepath)
{
	var vurl = filepath;
	//var preview = document.getElementById('preview');
	//preview.style.display='';
	//preview.style.width = '450px';
	//preview.style.height = '400px';
	var picture = document.getElementById("preview");
	picture.innerHTML = '<object width="420" height="360" classid="CLSID:CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"><param name="url" value="' + vurl + '" /><embed width="420" height="360" type="application/x-mplayer2" src="' + vurl + '"></embed></object>';
}

function showrm(filepath)
{
	var vurl = filepath;
	//alert(vurl);
	var preview = document.getElementById('preview');
	preview.style.display='';
	preview.style.width = '450px';
	preview.style.height = '400px';
	var picture = document.getElementById("picture");
	var string = '<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="420" height="310">';
    string += '<param name="src" value="' + vurl + '" />' 
    string += '<param name="controls" value="Imagewindow" />'
    string += '<param name="console" value="clip1" />'
    string += '<param name="autostart" value="true" />'
    string += '<embed src="' + vurl + '" type="audio/x-pn-realaudio-plugin" autostart="true" console="clip1" controls="Imagewindow" width="420" height="310"></embed>'
	string += '</object><br />'
	string += '<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="420" height="44">'
	string += '<param name="src" value="' + vurl + '" />'
    string += '<param name="controls" value="ControlPanel" />' 
    string += '<param name="console" value="clip1" />'
   	string += '<param name="autostart" value="true" />'
    string += '<embed src="' + vurl + '" type="audio/x-pn-realaudio-plugin" autostart="true" console="clip1" controls="ControlPanel" width="420" height="44"></embed>'
	string += '</object>'
	picture.innerHTML = string;
	//picture.innerHTML = '<object width="420" height="360" classid="CLSID:CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"><param name="url" value="' + vurl + '" /><embed width="420" height="360" type="application/x-mplayer2" src="' + vurl + '"></embed></object>';
}